# -*- coding: utf-8 -*-

"""
@author: Mark Wu
@file: base.py
@time: 2025/8/2 22:05
"""

from selenium import webdriver
import allure
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from src.common.recordlog import logs
from src.common.connection import ConnectSqlite
from src.conf.setting import ALLURE_IMG_DIR, CLERA_SQL_LIST, TIMEOUT


class Base:

    def __init__(self, driver=None):
        if driver is not None:
            self.driver = driver
        else:
            self.driver = webdriver.Chrome()
            self.driver.implicitly_wait(TIMEOUT)
            self.driver.maximize_window()

            # 初始化数据
            ConnectSqlite().execute_sql(CLERA_SQL_LIST)

    def get_page(self, url):
        pass

    def quit_page(self):
        pass


